package com.pay.common.constant;

/**
 * 支付系统常量
 */
public class PayConstants {
    
    // 订单状态
    public static final String ORDER_STATUS_PENDING = "PENDING";      // 待支付
    public static final String ORDER_STATUS_PAID = "PAID";           // 已支付
    public static final String ORDER_STATUS_FAILED = "FAILED";       // 支付失败
    public static final String ORDER_STATUS_CANCELLED = "CANCELLED"; // 已取消
    public static final String ORDER_STATUS_REFUNDED = "REFUNDED";   // 已退款
    
    // 交易状态
    public static final String TRADE_STATUS_PENDING = "PENDING";     // 处理中
    public static final String TRADE_STATUS_SUCCESS = "SUCCESS";     // 成功
    public static final String TRADE_STATUS_FAILED = "FAILED";       // 失败
    
    // 支付渠道
    public static final String CHANNEL_WECHAT = "WECHAT";           // 微信支付
    public static final String CHANNEL_ALIPAY = "ALIPAY";           // 支付宝
    public static final String CHANNEL_BANK = "BANK";               // 银企直联
    
    // 通知状态
    public static final String NOTIFY_STATUS_PENDING = "PENDING";   // 待通知
    public static final String NOTIFY_STATUS_SUCCESS = "SUCCESS";   // 通知成功
    public static final String NOTIFY_STATUS_FAILED = "FAILED";     // 通知失败
    
    // Kafka Topics
    public static final String TOPIC_PAYMENT_CALLBACK = "payment-callback";
    public static final String TOPIC_ORDER_CREATED = "order-created";
    public static final String TOPIC_PAYMENT_SUCCESS = "payment-success";
    public static final String TOPIC_RISK_SCORE = "risk-score";
}



